/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.server.data.header;

import hope.platform.data.domain.Warning;

import java.util.Date;
import java.util.List;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/20 15:57
 */
public interface WarningService {
    Warning addWarning(Warning warning);

    Warning findById(String id);

    List<Warning> findBySerialNumber(String serialNumber);

    List<Warning> findAll();

    List<Warning> getByGmtCreateBetween(Date beginTime, Date endTime);

    Warning getTopBySerialNumberAndDataNameOrderByGmtCreateDesc(String serialNumber, String dataName);

    long countBySerialNumberAndDataNameAndGmtCreateBetween(
            String serialNumber, String dataName, Date beginTime, Date endTime);

}
